#include <iostream>
#include <cstdio>
#include <sstream>
using namespace std;

char s[100111];

int main() {
	for(int i = 0; i < 42; ++i)
		cout << 'x' << i << ',';
	cout << "label" << endl;
	while (gets(s)) {
		string label = "";
		if (s[0] == 'a') label = "anime";
		else if (s[0] == 'c') label = "cartoon";
		else if (s[0] == 'r') label = "real";

		for(int i = 0; i < 7; ++i) {
			gets(s);
			istringstream ss(s);
			double a;
			while (ss >> a) cout << a << ',';
		}
		cout << label << endl;
	}
}